package nix.mybatis.spring.dao;

import nix.mybatis.pojo.User;

import org.mybatis.spring.support.SqlSessionDaoSupport;

/**
 * 传统Dao方式，继承SqlSessionDaoSupport，注入sqlSessionFactory
 */
public class UserDaoImpl extends SqlSessionDaoSupport implements UserDao {

	public User findById(Integer id) {
		return getSqlSession().selectOne("user.findById", id);
	}
}
